import { ref } from 'vue'
import { getHomeHotOrdersApi } from '@/api'
export function useHotOrderData(){
    let orderList = ref([])

    function getHotOrderList(){
        getHomeHotOrdersApi().then(res => {
            orderList.value = res
        })
    }
    return {
        orderList,
        getHotOrderList
    }
}